package st;

import st.base.Sysdate;
import st.strategy.vo.Stock;

public class BasicStockData {
	private Stock stock;

	private Sysdate tradeDate;
	// private Collection<TechLine> techLines;
	private double open;
	private double close;
	private double highest;
	private double lowest;

	// public void addTechLines(TechLine techLine) {
	// this.techLines.add(techLine);
	// }

	public BasicStockData(Stock stock, Sysdate tradeDate, double open,
			double highest, double lowest, double close) {
		super();
		this.stock = stock;
		this.tradeDate = tradeDate;
		this.tradeDate.addStockData(this);
		this.open = open;
		this.close = close;
		this.highest = highest;
		this.lowest = lowest;
	}

	public Sysdate getTradeDate() {
		return tradeDate;
	}

	public double getOpen() {
		return open;
	}

	public double getClose() {
		return close;
	}

	public double getHighest() {
		return highest;
	}

	public double getLowest() {
		return lowest;
	}

	public void setTradeDate(Sysdate tradeDate) {
		this.tradeDate = tradeDate;
	}

	public void setOpen(double open) {
		this.open = open;
	}

	public void setClose(double close) {
		this.close = close;
	}

	public void setHighest(double highest) {
		this.highest = highest;
	}

	public void setLowest(double lowest) {
		this.lowest = lowest;
	}

	@Override
	public String toString() {
		return "BasicStockData [stockId=" + stock.getStockId() + ", tradeDate="
				+ tradeDate + ", open=" + open + ", close=" + close
				+ ", highest=" + highest + ", lowest=" + lowest + "]";
	}

	public Stock getStock() {
		return stock;
	}

}
